package com.yotoodesign.dianba.bean;

import java.util.ArrayList;
import java.util.List;

public class BaseData {
	
	protected static final String XML_HEADER = "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
	protected static final String CRLF = "\n";
	protected static final String TAB = "    ";
	
	/*
	 * 数据标识
	 */
	private String id;
	/*
	 * 名称
	 */
	private String name;
	/*
	 * 详情描述
	 */
	private String desc;
	/*
	 * 拼音简写
	 */
	private String pinyin;
	/*
	 * 图片URL
	 */
	private String imageUrl;
	/*
	 * 是否选中
	 */
	private boolean selected = false;
	/*
	 * 收藏数
	 */
	private int favoritesCount;
	
	/*
	 * 添加时间
	 */
	private String createDate;
	/*
	 * 更新时间
	 */
	private String updateDate;
	/*
	 * 状态  N:正常，A:待审核，D:已删除
	 */
	private String state;
	/*
	 * 备注
	 */
	private String reamrks;
	/*
	 * 标签
	 */
	private List<Tag> tags = new ArrayList<Tag>();
	
	public void addTag(Tag tag){
		tags.add(tag);
	}
	
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getPinyin() {
		return pinyin;
	}
	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}
	public String getImageUrl() {
		return imageUrl;
	}
	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}
	public boolean isSelected() {
		return selected;
	}
	public void setSelected(boolean selected) {
		this.selected = selected;
	}
	public int getFavoritesCount() {
		return favoritesCount;
	}
	public void setFavoritesCount(int favoritesCount) {
		this.favoritesCount = favoritesCount;
	}
	public List<Tag> getTags() {
		return tags;
	}
	public void setTags(List<Tag> tags) {
		this.tags = tags;
	}
	public String getCreateDate() {
		return createDate;
	}
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	public String getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(String updateDate) {
		this.updateDate = updateDate;
	}
	public String getReamrks() {
		return reamrks;
	}
	public void setReamrks(String reamrks) {
		this.reamrks = reamrks;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	
	
	
}
